const ErrorPage = () => import(/* webpackChunkName: "Error" */ 'pages/error')
const ChangePassword = () => import(/* webpackChunkName: "ChangePassword" */'pages/persons/change-password')
// const HomePage = () => import(/* webpackChunkName: "Error" */ 'pages/home')

export default [
  {
    path: '/',
    name: 'home.index',
    redirect: '/home',
    meta: {
      title: '首页',
      keepAlive: true,
      auth: false,
    }
  },
  {
    path: '/home',
    name: 'home.index',
    redirect: '/curriculum/manager/list',
    meta: {
      title: '首页',
      keepAlive: true,
      auth: false,
    }
  },
  {
    path: '/change-password',
    component: ChangePassword,
    meta: {
      title: '修改密码',
      auth: false,
      keepAlive: true,
      notBreadCrumb: true
    },
  },
  // {
  //   path: '/home',
  //   name: 'home',
  //   component: HomePage,
  //   meta: {
  //     title: '首页',
  //     menuPath: '/home',
  //     keepAlive: true,
  //     auth: false,
  //   }
  // },

  {
    path: '*',
    component: ErrorPage,
    meta: {
      title: 'Not Found',
      auth: false,
      keepAlive: true,
    },
  },
];
